package net.xumf.service.master;

import net.xumf.support.model.bo.EmailBO;

import javax.mail.MessagingException;

/**
 * 邮件业务类
 */
public interface MailService {

    /**
     * 发送文本邮件
     *
     * @param emailBO {@link EmailBO}
     */
    void sendText(EmailBO emailBO);

    /**
     * 发送html邮件
     *
     * @param emailBO {@link EmailBO}
     * @throws MessagingException
     */
    void sendHtml(EmailBO emailBO) throws MessagingException;
}
